#include<stdio.h>
int multiplication(int n)
{
	int i = 0;
	int j = 0;
	for (i = 1; i <=n; i++)
	{
		for (j = 1; j<=n; j++)
		{
			int c = i * i;
			printf("%d*%d=%d ", i, j, c);
		}
		printf("\n");
	}
	return 0;
}
int main(void)
{
	int n = 0;
	scanf("%d", &n);
	multiplication(n);
	return 0;
}
